﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;

namespace WinFormClient//数据库组写，网络组调用;
{
    public enum LoginState
    {
        LOGIN = 0,
        LOGOUT = 1,
        HIDDEN = 2,
        FAILED = -1
    };

    public class Group
    {
        private int groupid;
        private string groupname;
        public int Groupid { get { return groupid; } set { groupid = value; } }
        public string Groupname { get { return groupname; } set { groupname = value; } }
    }

    public class Topic
    {
        int topicid;
        public int TopicID
        {
            get { return topicid; }
            set { topicid = value; }
        }
        int userid;
        public int UserID
        {
            get { return userid; }
            set { userid = value; }
        }
        string username;
        public string Username
        {
            get { return username; }
            set { username = value; }
        }
        DateTime createdtime;
        public System.DateTime CreatedTime
        {
            get { return createdtime; }
            set { createdtime = value; }
        }
        string title;
        public string Title
        {
            get { return title; }
            set { title = value; }
        }
        int totalreplies;
        public int TotalReplies
        {
            get { return totalreplies; }
            set { totalreplies = value; }
        }
    }

    public class Message
    {
        int replyid;
        public int ReplyID
        {
            get { return replyid; }
            set { replyid = value; }
        }
        string content;
        public string Content
        {
            get { return content; }
            set { content = value; }
        }
        string username;
        public string Username
        {
            get { return username; }
            set { username = value; }
        }
        int userid;
        public int UserID
        {
            get { return userid; }
            set { userid = value; }
        }
    }
}
